import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementUI from 'element-ui';

Vue.use(ElementUI)//全局使用ElementUI
import 'element-ui/lib/theme-chalk/index.css'
//引入iconfont
import './assets/font/iconfont.css'
//引入全局样式
import './assets/css/base.css'
//导入axios
import axios from 'axios'
axios.interceptors.request.use(config => {
    config.headers.authorization = window.sessionStorage.getItem("authorization")
    return config
})
// //挂载axios
Vue.prototype.$http = axios
// //设置跟访问路径
axios.defaults.baseURL = "http://localhost:9000"

Vue.config.productionTip = false

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
